package jannex.sql;

import jannex.JannexException;

import javax.xml.transform.Result;
import javax.xml.transform.Source;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Reader;
import java.io.Writer;

public interface JxSQLXML extends java.sql.SQLXML {

    @Override
    void free() throws JannexException;

    @Override
    InputStream getBinaryStream() throws JannexException;

    @Override
    OutputStream setBinaryStream() throws JannexException;

    @Override
    Reader getCharacterStream() throws JannexException;

    @Override
    Writer setCharacterStream() throws JannexException;

    @Override
    String getString() throws JannexException;

    @Override
    void setString(String value) throws JannexException;

    @Override
    <T extends Source> T getSource(Class<T> sourceClass) throws JannexException;

    @Override
    <T extends Result> T setResult(Class<T> resultClass) throws JannexException;

}